﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Interfaces
{
    /// <summary>
    /// Interaction logic for IUMenuDiario.xaml
    /// </summary>
    public partial class IUMenuDiario : Window
    {
        public IUMenuDiario()
        {
            InitializeComponent();
            calendar1.SelectedDate = DateTime.Now;
        }

        private void buttonDesayuno_Click(object sender, RoutedEventArgs e)
        {
            
            IUReceta desayuno = new IUReceta(calendar1.SelectedDate.Value.Date, "d");
            desayuno.Show();
        }

        private void buttonAlmuerzo_Click(object sender, RoutedEventArgs e)
        {
            IUReceta almuerzo = new IUReceta(calendar1.SelectedDate.Value.Date, "a");
            almuerzo.Show();
        }

        private void buttonCena_Click(object sender, RoutedEventArgs e)
        {
            IUReceta cena = new IUReceta(calendar1.SelectedDate.Value.Date, "c");
            cena.Show();
        }
    }
}
